package cn.loan.service.impl;

import cn.loan.dao.FeedBackMapper;
import cn.loan.entity.FeedBack;
import cn.loan.service.FeedBackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: 毛苏宇
 * @Description: You can do it!
 * @Date: Create in 20:26 2019/3/20
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class FeedBackServiceImpl implements FeedBackService {

    @Autowired private FeedBackMapper feedBackMapper;

    @Override
    public boolean submitFeedback(FeedBack feedBack) {
        return feedBackMapper.addFeedBack(feedBack)==1?true:false;
    }
}
